Optimal. Leaf size=34 \[ \frac{\log (\sin (c+d x))}{a d}-\frac{\log (a+b \sin (c+d x))}{a d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0414976, antiderivative size = 34, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.21, Rules used = {2721, 36, 29, 31} \[ \frac{\log (\sin (c+d x))}{a d}-\frac{\log (a+b \sin (c+d x))}{a d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2721
Rule 36
Rule 29
Rule 31
Rubi steps
\begin{align*} \int \frac{\cot (c+d x)}{a+b \sin (c+d x)} \, dx &=\frac{\operatorname{Subst}\left (\int \frac{1}{x (a+x)} \, dx,x,b \sin (c+d x)\right )}{d}\\ &=\frac{\operatorname{Subst}\left (\int \frac{1}{x} \, dx,x,b \sin (c+d x)\right )}{a d}-\frac{\operatorname{Subst}\left (\int \frac{1}{a+x} \, dx,x,b \sin (c+d x)\right )}{a d}\\ &=\frac{\log (\sin (c+d x))}{a d}-\frac{\log (a+b \sin (c+d x))}{a d}\\ \end{align*}
Mathematica [A] time = 0.0174214, size = 34, normalized size = 1. \[ \frac{\log (\sin (c+d x))}{a d}-\frac{\log (a+b \sin (c+d x))}{a d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.036, size = 35, normalized size = 1. \begin{align*}{\frac{\ln \left ( \sin \left ( dx+c \right ) \right ) }{da}}-{\frac{\ln \left ( a+b\sin \left ( dx+c \right ) \right ) }{da}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.973546, size = 45, normalized size = 1.32 \begin{align*} -\frac{\frac{\log \left (b \sin \left (d x + c\right ) + a\right )}{a} - \frac{\log \left (\sin \left (d x + c\right )\right )}{a}}{d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.47085, size = 80, normalized size = 2.35 \begin{align*} -\frac{\log \left (b \sin \left (d x + c\right ) + a\right ) - \log \left (-\frac{1}{2} \, \sin \left (d x + c\right )\right )}{a d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\cos{\left (c + d x \right )} \csc{\left (c + d x \right )}}{a + b \sin{\left (c + d x \right )}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.17809, size = 47, normalized size = 1.38 \begin{align*} -\frac{\frac{\log \left ({\left | b \sin \left (d x + c\right ) + a \right |}\right )}{a} - \frac{\log \left ({\left | \sin \left (d x + c\right ) \right |}\right )}{a}}{d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]